import {combineReducers} from 'redux';
import userReduer from './user';
import articlesReduer from './articles';
import profileReducer from './profile';
import articleReduer from './article';
import commentReduer from './comment';
import {connectRouter} from 'connected-react-router'

const createRootReducer = (history)=>combineReducers({
    user:userReduer,
    articles:articlesReduer,
    profile:profileReducer,
    article:articleReduer,
    comment:commentReduer,
    router:connectRouter(history),
})

export default createRootReducer